﻿using SiyinPractice.Application.ProjectManagement.ProjectManage.Help;
using SiyinPractice.Framework.Dependency;
using SiyinPractice.Interface.Maintenance;
using Microsoft.Extensions.DependencyInjection;
using SiyinPractice.Framework.Dependency;

namespace SiyinPractice.Application.ProjectManagement.ProjectManage.Dependency
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public void Register(IServiceCollection services)
        {
            //services.AddScoped<IOpportunityService, OpportunityService>();
            //services.AddScoped<IProjectService, ProjectService>();
            //services.AddScoped<IAccountPasswordService, AccountPasswordService>();
            services.AddSingleton<TimeCycleHelper>();
            services.AddSingleton<DingDingTimeCycleHelper>();
            services.AddHostedService<WeChatMsgReminderService>();
            services.AddHostedService<DingDingMsgReminderService>();
        }
    }
}